﻿using SuperX.DataService.Abstract;
using System;
using System.Collections.Generic;
using System.Text;

namespace SuperX.DataService
{
    public struct PDUArea
    {
        public DeviceAddress Start;
        public int Len;
        public int StartIndex;
        public int Count;
        public byte[] lastValues;
        public byte StartBit;

        public PDUArea(DeviceAddress start, int len, int startIndex, int count, byte startBit)
        {
            Start = start;
            Len = len;
            StartIndex = startIndex;
            Count = count;
            lastValues = new byte[count];
            StartBit = startBit;
        }
    }
}